package baseTest;

public class maxDepth {
    public static void main(String[] args) {

    }

    public int process(TreeNode root){
      return   process(root,0);
    }
    public int process(TreeNode root,int cur){
        if (root == null){
            return cur;
        }
        return Math.max(process(root.right, cur + 1),process(root.left, cur + 1));
    }
}
